/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.me.backing.credential;

import javax.annotation.PostConstruct;
import org.apache.myfaces.trinidad.component.core.input.CoreInputHidden;
import org.apache.myfaces.trinidad.component.core.input.CoreInputText;

/**
 *
 * @author Jayasundara
 */
public class UserProfile {

    CoreInputHidden userId;
    CoreInputText email;
    CoreInputText password;
    CoreInputText rePassword;
    CoreInputText prefix;
    CoreInputText firstName;
    CoreInputText lastName;

    String text;

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
    @PostConstruct
    public void init() {
    }

    public String submit(){
        System.out.println("submit");
        System.out.println(toString());
        return "";
    }

    public CoreInputText getEmail() {
        return email;
    }

    public void setEmail(CoreInputText email) {
        this.email = email;
    }

    public CoreInputText getFirstName() {
        return firstName;
    }

    public void setFirstName(CoreInputText firstName) {
        this.firstName = firstName;
    }

    public CoreInputText getLastName() {
        return lastName;
    }

    public void setLastName(CoreInputText lastName) {
        this.lastName = lastName;
    }

    public CoreInputText getPassword() {
        return password;
    }

    public void setPassword(CoreInputText password) {
        this.password = password;
    }

    public CoreInputText getPrefix() {
        return prefix;
    }

    public void setPrefix(CoreInputText prefix) {
        this.prefix = prefix;
    }

    public CoreInputText getRePassword() {
        return rePassword;
    }

    public void setRePassword(CoreInputText rePassword) {
        this.rePassword = rePassword;
    }

    public CoreInputHidden getUserId() {
        return userId;
    }

    public void setUserId(CoreInputHidden userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        String string = "userId:"+userId+"\n"+
                " email:"+email+"\n"+
                " password:"+password+"\n"+
                " rePassword:"+rePassword+"\n"+
                " prefix:"+prefix+"\n"+
                " firstName:"+firstName+"\n"+
                " lastName:"+lastName;

        return string;
    }

}
